The Dreamweaver JavaScript API > Enablers > site.canPut()

 

site.canPut()

Availability

Dreamweaver 3.0

Description

Determines whether Dreamweaver can perform a Put operation.

Arguments

siteOrURL

siteOrURL must be the keyword "site", indicating that the function should act on the selection in the Site window, or the URL for a single file.

Returns

If the argument is "site", a Boolean value indicating whether any files or folders are selected in the Site window and a remote site has been defined. If the argument is a URL, a Boolean value indicating whether the document belongs to a site for which a remote site has been defined.